// pages/login/login.js
Page({

  data: {
    MobileNumber: ''
  },

  loginBtnClick: function () {
    var number = this.data.MobileNumber;
    wx.request({
      url: 'https://shop1.mollyfantasy.universal-space.cn/p14/app/member/sendsmscode',
      data: {
        //@Query("mobile") String mobile, @Query("countryCode") String countryCode

        'countryCode': "86",
        'mobile': number
      },
      method: 'POST',
      header: {
        'content-type': 'application/x-www-form-urlencoded'
      },
      // responseType: 'json',
      success: (result) => {
        wx.navigateTo({
          url: "/pages/logincode/logincode?MobileNumber=" + number
        })
        console.log(result)
      },
      fail: () => { },
      complete: () => { }
    });


  },
  getMoileNumber: function (event) {
    this.setData({
      MobileNumber: event.detail.value
    })

  }
})

